import request from '../utils/request'

/* 验证码 */
export const regImg = (params: { id: string }) =>
  request.get('/public/captcha', { params })

/* 提交注册 */
export const signUp = (data: any) => request.post('/user/signup', data)

/* 登录 */
export const signIn = (data: any) => request.post('/user/signin', data)

/* 获取用户信息 */
export const info = () => request.get('/user/info')
